Crate async_zip

source ·
Expand description

An asynchronous ZIP archive reading/writing crate powered by tokio.

Features

  • Support for Stored, Deflate, bzip2, LZMA, zstd, and xz compression methods.
  • Various different reading approaches (seek, stream, filesystem, in-memory buffer).
  • Support for writing complete data (u8 slices) or stream writing using data descriptors.
  • Initial support for ZIP64 reading.
  • Aims for reasonable specification compliance.

Installation

[dependencies]
async_zip = { version = "0.0.11", features = ["full"] }

Feature Flags

  • full - Enables all below features.
  • chrono - Enables support for parsing dates via chrono.
  • fs - Enables support for the fs reading module.
  • deflate - Enables support for the Deflate compression method.
  • bzip2 - Enables support for the bzip2 compression method.
  • lzma - Enables support for the LZMA compression method.
  • zstd - Enables support for the zstd compression method.
  • xz - Enables support for the xz compression method.

Read more.

Modules

A module which holds relevant error reporting structures/types.
A module which supports reading ZIP files.
A module which supports writing ZIP files.

Structs

An immutable store of data about how a ZIP entry is stored within a specific archive.
A date and time stored as per the MS-DOS representation used by ZIP files.
An immutable store of data about a ZIP entry.
An immutable store of data about a ZIP file.
A builder for ZipFile.

Enums

An attribute host compatibility supported by this crate.
A compression method supported by this crate.
Level of compression data should be compressed with for deflate.